package com.cloud.sms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.annotation.PostConstruct;
import java.util.TimeZone;


/**
 * description:入口类
 * Author	Date	Changes
 * tc  2020-01-07 Created
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan({ "com.cloud.sms.dao" })
@EnableFeignClients(basePackages = {"com.cloud"})
@EnableSwagger2
@ComponentScan(basePackages = {"com.cloud"})
public class SmsApplication {

	@PostConstruct
	void setDefaultTimezone() {
		TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
	}
	public static void main(String[] args) {
		SpringApplication.run(SmsApplication.class, args);
	}
}
